import Request from "../request";

export default {
    // 分类信息
    getVideoCategory: (data: Object) => Request.get('/api/video/getCtcategory', data),//获取产品列表
    addVideoCtcategory: (data: Object) => Request.post('/api/video/addCategory', data),//添加分类
    editVideoCtcategory: (data: Object) => Request.post('/api/video/editCtcategory', data),//修改分类
    deleteVideoCtcategory: (data: Object) => Request.post('/api/video/deleteCtcategory', data),//删除分类

    // 小说信息
    addVideo: (data: Object) => Request.post('/api/video/addCartoon', data),//添加漫画
    getVideoList: (data: Object) => Request.get('/api/video/getCartoonList', data),//获取漫画列表
    getVideoDetail: (data: Object) => Request.get('/api/video/getCartoonDetail', data),//获取漫画详情
    editVideo: (data: Object) => Request.post('/api/video/editCartoon', data),//修改漫画
    deleteVideo: (data: Object) => Request.post('/api/video/deleteCartoon', data),//删除漫画
    getVideoChapterList: (data: Object) => Request.get('/api/video/getChapterList', data),//获取章节列表
    addVideoChapter: (data: Object) => Request.post('/api/video/addChapter', data),//添加章节
  }